import { viteMockServe } from 'vite-plugin-mock';

export default (viteEnv: ViteEnv) => {
  return viteMockServe({
    mockPath: '__mock', // mock 文件夹
    enable: viteEnv.VITE_APP_MOCK, // 本地开启mock
  });
};
